package com.hgw.Demo04_BuilderPattern.Exercises6_7_5;

import java.awt.*;

/**
 * Data time:2021/12/13 10:40
 * StudentID:2019112118
 * Author:hgw
 * Description:
 */
public abstract class VideoPlayerBuilder {
    protected VideoPlayer videoPlayer = new VideoPlayer();

    public abstract void buildMenu();
    public abstract void buildPlaylist();
    public abstract void buildMainWindow();
    public abstract void buildControlBar();
    public abstract void buildFavoriteList();

    // 是否有显示菜单
    public boolean isMenu() {
        return true;
    }
    // 是否有播放列表
    public boolean isPlaylist() {
        return true;
    }
    // 是否有收藏列表
    public boolean isFavoriteList() {
        return true;
    }

    public VideoPlayer createVideoPlayer() {
        return videoPlayer;
    }
}
